#ifndef PUT_FILE_H_
#define PUT_FILE_H_
#include "message.h"
#include "../Utils/encode_desencode.h"

class PutFile : public Message {
private:
	std::string file_name_;
    std::string hash_;
	std::string file_;
public:
	PutFile(std::string* fn, std::string* hash, std::string* file) : Message (9) {
			file_name_=*fn;
	        hash_=*hash;
			file_=*file;
	}


	PutFile(std::string* fn, std::string* hash, std::string* file,std::string user, std::string pass) : Message (9,user,pass) {
		file_name_=*fn;
        hash_=*hash;
		file_=*file;
	}

	std::string Format ()
	{
		std::string result=file_name_+"//"+hash_+" "+file_;
		return result;
	}

	std::string getFileName(){

		return file_name_;
	}

	std::string getHash(){
			return hash_;
	}

	std::string getFile(){
		return file_;
	}
};



#endif /* PUT_FILE_H_ */
